<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改广告</title>

<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.3.min.js"></script>

<link rel="stylesheet" href="__PUBLIC__/css/add.css" type="text/css" media="screen">
<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.css" type="text/css" media="screen">

</head>
<body>
<h1></h1>
<div class="div_from_aoto" style="width: 500px;">
    <!-- <form action="{:U('Home/User/doedit')}"  method="post"> -->
    <!-- <form action="" method="post">
        <input type="hidden" name="status" value="1"/>

        <div class="control-group">
            <label class="laber_from">登录名</label>
            <div class="controls"><input  class="input_from" name="name" value="" placeholder=" 请输入用户名" type="text"><p class="help-block"></p></div>
        </div>

        <div class="control-group">
            <label class="laber_from">密码</label>
            <div class="controls"><input name="pass" class="input_from" placeholder=" 请输入密码" type="text"><p class="help-block"></p></div>
        </div>
        <div class="control-group">
            <label class="laber_from">确认密码</label>
            <div class="controls"><input name="repwd" class="input_from" placeholder=" 请输入确认密码" type="text"><p class="help-block"></p></div>
        </div>

        <div class="control-group">
            <label class="laber_from">电话号码</label>
            <div class="controls"><input name="phone" value="" class="input_from" placeholder=" 请输入确认密码" type="text"><p class="help-block"></p></div>
        </div>

        <div class="control-group">
            <label class="laber_from">邮箱</label>
            <div class="controls"><input name="email" value="" class="input_from" placeholder=" 请输入确认密码" type="text"><p class="help-block"></p></div>
        </div> -->

        <!-- <div class="control-group">
            <label class="laber_from">性别</label>
            <div class="controls">
                <select name="sex" class="input_select">
                    <option value="1" >男</option>
                    <option value="0" >女</option>
                    <option value="2" >妖</option>
                </select>
            </div>
        </div> -->

        <!-- <div class="control-group">
            <label class="laber_from">地址</label>
            <div class="controls">
                <textarea name="address" cols="30" rows="10"></textarea>
            </div>
        </div>
 -->

        
       <!--  <div class="control-group">
            <div class="controls">
                <input type="submit" class"btn btn-info" width="100px"/>
                <input type="reset" value="清空" class="btn btn-info" width="100px"/>
            </div>
        </div>
    </form> -->
    <form method="post" id="handleposition" action="{:U('Admin/advs/edit_ad')}" enctype="multipart/form-data"><!--通用信息-->
    <input type="hidden" name="id" value="{$list.id}" />
    <input type="hidden" name="opic" value="{$list.picname}" />
    <div class="tab-content col-md-10">                       
    <div class="tab-pane active" id="tab_tongyong">                           
        <table class="table table-bordered">
            <tbody>
            <tr>
                <td class="col-sm-2">广告名称：</td>
                <td class="col-sm-8">
                <input type="text" class="form-control" value="{$list.advsname}" name="advsname">           
                </td>
            </tr>
            <!-- <tr>
                <td>广告位置：</td>
                <td>
                    <select name="address" class="input-sm">
                        <option value="0">广告</option>
                        <option value="1">广告1</option>
                        <option value="2">广告2</option>
                    </select>                                
                </td>
            </tr> -->
            <tr>
                <td>广告链接：</td>
                <td>
                    <input type="text" class="form-control" name="advslink" value="{$list.advslink}">
                </td>
            </tr> 
            <tr>
                <td>广告图片：</td>
                <td>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" style="width:350px;margin-left:-15px;" id="ad_code"> -->
                    </div>
                    <div class="col-sm-3">
                        <input type="file" class="btn btn-default" name="picname" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>状态：</td>
                <td>
                    <select name="status" class="input-sm">
                         <option value="1" {$list['status'] == 1?selected:''}>显示</option>                       
                         <option value="2" {$list['status'] == 2?selected:''}>隐藏</option>
                    </select>                                
                </td>
            </tr>                                  
            </tbody> 
            <tfoot>
                <tr>
                <td><input class="btn btn-primary" type="submit" value="保存"></td></tr>
            </tfoot>                               
        </table>
    </div>                           
    </div>              
    </form><!--表单数据-->

</div>

</body>
    <script>
         //获取当前用户权限值
         var status = {$Think.session.admin_status};
         //判断当前用户是否为超管
         window.onload = function(){
            if(status == 1){
                $('#admin_form div div input').attr('disabled',true);
            }
         }
    </script>
</html>